package com.tuanzi.loan.business.service.galaxycard.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.retry.RetryException;
import org.springframework.retry.annotation.Retryable;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.tuanzi.loan.business.repository.galaxycard.GalaxyCardOrderRepository;
import com.tuanzi.loan.business.service.galaxycard.GalaxyCardOrderService;
import com.tuanzi.loan.core.aspect.Debug;
import com.tuanzi.loan.core.vo.PageSearcher;
import com.tuanzi.loan.vo.request.galaxycard.GalaxyCardOrderRequest;
import com.tuanzi.loan.vo.response.galaxycard.GalaxyCardOrderResponse;

@Debug
@Service
@Transactional
@Retryable(value = { RetryException.class })
public class GalaxyCardOrderServiceImpl implements GalaxyCardOrderService{
	
	@Autowired
	private GalaxyCardOrderRepository galaxyCardOrderRepository;
	
	@Override
	public Page<GalaxyCardOrderResponse> list(
			PageSearcher<GalaxyCardOrderRequest> pageSearcher) {
		return galaxyCardOrderRepository.list(pageSearcher.getSearchCondition(), pageSearcher.getPageable());
	}


}
